Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat function autocompletion #42

Merged
merged 6 commits into from
Jul 1, 2019

Conversation

NewFuture
Copy link
Contributor

函数自动提示
based on #41

  • [feature] 输入事件时,自动提示可使用函数如图
  • [fix] 函数提取正则支持ts返回类型格式f():void{
  • [performace] 函数和字段提取增加缓存

image

函数提示排序优先级

  1. 正常函数 如 onTap
  2. 下划线函数 _save
  3. 生命周期函数 onShow

函数图标

  • 函数(紫色) f(){}
  • 属性(白色) p:(){}
  • 字段(蓝色) onShow(){} (生命周期函数)

break change

函数/变量搜索时 如果ts和js文件同时存在,优先使用ts

@qiu8310 qiu8310 merged commit 01c77bb into wx-minapp:master Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants